package com.luzhikun.java1;

/**
 * @author shkstart
 * @create 2021-03-03 20:21
 */
public class Person extends Phycity implements Myinterface {
    private String sala;
    public int age;
    double salary;


    @Override
    public void test() {
        System.out.println("吴杰不是人");
    }

    @Override
    public String toString() {
        return "Person{" +
                "age=" + age +
                ", salary=" + salary +
                '}';
    }

    private String test1(String name) {
        System.out.println("吴杰属猪" + name);
        return name;

    }

    private static void test2() {
        System.out.println("吴杰不是人");
    }

    @Override
    public int getAge() {
        return age;
    }

    @Override
    public void setAge(int age) {
        this.age = age;
    }

    public double getSalary() {
        return salary;
    }

    public void setSalary(double salary) {
        this.salary = salary;
    }

    public Person(String name, int age, int age1, double salary) {
        super(name, age);
        this.age = age1;
        this.salary = salary;
    }

    public Person(int age, double salary) {
        this.age = age;
        this.salary = salary;
    }

    private Person(int age) {
        this.age = age;
    }

    public Person(String name, int age, String sala, int age1, double salary) {
        super(name, age);
        this.sala = sala;
        this.age = age1;
        this.salary = salary;
    }

    public Person(String sala, int age, double salary) {
        this.sala = sala;
        this.age = age;
        this.salary = salary;
    }

    public Person(String sala) {

        this.sala = sala;
    }

    public Person() {
    }

}
